﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Spire.DocViewer.Forms;

namespace EvTest.SpireWord
{
    public partial class DocV : Form
    {
        public DocV()
        {
            InitializeComponent();
        }

        private void DocV_Load(object sender, EventArgs e)
        {
            DocViewer docViewer = new DocViewer();
            try
            {
                docViewer.Parent = splitContainer1.Panel1;
                docViewer.Dock = DockStyle.Fill;

                // Load Word document from file.
                docViewer.LoadFromFile(@"C:\Users\heyue\Desktop\20-21-9对比.doc");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}
